<h2> Welcome to <?php echo Configure::read('systemConfig')->Backend->siteName;?> Backend</h2>

<?php 
$i = 1;
// read dashboards
foreach($dashboard_components as $component)
{
		?>
		<div class="dashboard">
		<h3><?php echo $component['title'];?></h3>
		<div id="<?php echo $component['id'];?>">Fetching data..</div>
		<script>
		$("#<?php echo $component['id'];?>").load("<?php echo $html->url($component['url']);?>?ajax=1");
		</script>
		</div>
		<?php 
		if($i%3==0) echo "<div class='clear'></div>";
		$i++;
}
?>
<style>
div.dashboard
{
border: 1px solid black;
width: 30%;
min-height: 250px;
padding: 10px;
margin-bottom: 20px;
float: left;
margin-right: 5px;
}
div.dashboard h3
{
font-size: 14px !important;
font-weight: bold !important;
border-bottom: 1px solid black;
}
</style>